<?php
class AreaAction extends LoginAction
{
    public function index ()
    {}
    public function get ()
    {
        $ProvinceModel = M('Area');
        $map = array();
        $cityid = getGetOrPost('cityid');
        if($cityid){
            $map['cityid'] = $cityid;
        }
        $data = $ProvinceModel->where($map)->field('code,name,cityid')->select();
        $this->ajaxReturn($data, null, 1);
    }
}
?>